ISUP Message Manipulation Rules
The example manipulates the SIP message if the incoming INVITE message includes ISUP data that contains an IAM with Calling Party Number whose Presentation is set to restricted and:
■ | If P-Asserted-Identity header is absent: Add P-Asserted-Identity header with value "tel:+<IAM Calling Party Number>" |
■ | If From header is absent: Add the From header with value to "Anonymous" <sip:anonymous@anonymous.invalid>;tag=9802748 |
■ | If Privacy header is absent: Add Privacy header with value "id" |
INVITE sip:+14085551212@gw.pstn.net SIP/2.0 Via: SIP/2.0/TCP useragent.audiocode.com;branch=z9hG4bK-124 To: <sip:+14085551212@audiocodes.com> From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=9802748 Call-ID: 245780247857024504 CSeq: 2 INVITE Max-Forwards: 68 P-Asserted-Identity: tel:+14085264000 Privacy: id
ISUP Body Manipulation Rules Examples
Message Type |
Condition |
Action |
Action Type |
Action |
Row Rule |
---|---|---|---|---|---|
invite |
body.isup exists AND body.isup.iam.calling_party_number.presentation == 'restricted' AND header.p-asserted-identity !exists |
header.p-asserted-identity |
Add |
'tel:+' + body.isup.iam.calling_party_number.digits |
Use Current Condition |
invite |
body.isup exists AND body.isup.iam.calling_party_number.presentation == 'restricted' AND header.from !exists |
header.from |
Add |
"'"Anonymous" <sip:anonymous@anonymous.invalid>;tag=9802748'" |
Use Current Condition |
invite |
body.isup exists AND body.isup.iam.calling_party_number.presentation == 'restricted' AND header.Privacy !exists |
header.privacy |
Add |
'id' |
Use Current Condition |